printf("\nLHWARP %d.%d%d - Amiga disk tracker - Written by Jonathan Forbes @ 1:250/642\n", (UBYTE) MAJOR_VERSION, (UBYTE) MINOR_VERSION, (UBYTE) DECIMAL_VERSION);
printf("Please remove and re-insert destination disk, to use\n\n");
CleanUp();
}
MotorOff()
{
WriteMsg->iotd_Req.io_Length = 0L;
WriteMsg->iotd_Req.io_Command = TD_MOTOR;
DoIO((struct IORequest *) WriteMsg);
}
DisplayBootBlock(UBYTE *Data)
{
char Line[76];
UBYTE i;
register UBYTE j;
register UBYTE c;
/* End of the line to be displayed */
Line[73] = 10;
Line[74] = 13;
Line[75] = 0;
for (i=0; i<14; i++)
{
for (j=0; j<73; j++)
{
c = *((UBYTE *) ( ((UBYTE *) Data) + (i * 64) + j));
if (c < 32 || c > 126)
{
c = '.';
}
Line[j] = c;
}
printf(Line);
}
puts("");
}
ReadData()
{
ULONG AfterEncodeLength;
ULONG TotalEncodeLength;
ULONG TextLength;
ULONG i;
ULONG FileLength;
ULONG OriginalLength = 0L;
BPTR OutputFile;
ULONG Error;
ULONG DataSize;
ULONG OnlyDataSize;
FILE *TextInFile;
UBYTE *TextMemory;
UBYTE *ExtendedDataBlock;
printf("\nLHWARP %d.%d%d - Amiga disk tracker - Written by Jonathan Forbes @ 1:250/642\n", (UBYTE) MAJOR_VERSION, (UBYTE) MINOR_VERSION, (UBYTE) DECIMAL_VERSION);
printf("\nLHWARP %d.%d%d - Amiga disk tracker - Written by Jonathan Forbes @ 1:250/642\n", (UBYTE) MAJOR_VERSION, (UBYTE) MINOR_VERSION, (UBYTE) DECIMAL_VERSION);